import random

while True:
    i = random.randint(1, 5)
    if i == 4:
        print(4)
        break
    print(i)
